<%-- 
    Document   : hasilTerima
    Created on : Dec 11, 2013, 7:22:53 PM
    Author     : priska
--%>

<%@page import="java.sql.ResultSet"%>
<%@page import="java.sql.Statement"%>
<%@page import="java.sql.Connection"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <%Connection con = koneksi.CekKoneksi.open();
        String kodB = request.getParameter("kodeBarang");
        Statement stat = con.createStatement();
        ResultSet rs = null;
        String in1 = null;
        rs = stat.executeQuery("select jumlah from "+ session.getAttribute("area")+" where kode_barang='" + kodB + "'");
        if (rs.next()) {
            String jumlah = rs.getString("jumlah");



    %>

    <body>Stock Berhasil Ditambah

        Nama Barang : <%=request.getParameter("namaBarang")%><br>
        Kode Barang : <%=request.getParameter("kodeBarang")%><br>
        Stock Lama : <%=request.getParameter("stockBarang")%><br>
        Harga    : <%=request.getParameter("harga")%><br>
        Stock Baru : <%=jumlah%>
    </body><%}%>
</html>
